<?php
class Setting extends AppModel{
    var $useTable = "rs_setting";
    public $name = "Setting";
	var $primaryKey = "settingId";

    public function get_setting($name){
        $setting = $this->find('first', array(
            'conditions' => array('Setting.name' => $name)
        ));
        return $setting['Setting']['value'];
    }
}